package com.paipai.listen;

import org.springframework.amqp.rabbit.annotation.Exchange;
import org.springframework.amqp.rabbit.annotation.Queue;
import org.springframework.amqp.rabbit.annotation.QueueBinding;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.paipai.dao.PorderMapper;
import com.paipai.entity.Porder;
//@Component
public class Orderlisten {
	
	//@Autowired
	//private PorderMapper porderMapper;
	
	//@RabbitHandler
	//@RabbitListener(bindings=@QueueBinding(
	//		value=@Queue(value="paipai.createOrder.queue",durable="true"),
	//		exchange=@Exchange(value="paipai.createOrder.exchange",ignoreDeclarationExceptions="true"),
	//		key="createOrder.create.order"))
	//public void ProductState(Porder order) {
	//	System.out.println("order接受到消息");
	//	System.out.println(order);
	//	 int row = porderMapper.insert(order);
		
		
	//}

}
